import request from "../axios/requestMethod.ts";
import type {AxiosResponse} from "axios";

export const useGetHeatmapDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/heatmap"
    })

export const useGetGraphDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/graph"
    })

export const useGetScatterDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/scatter"
    })

export const useGetPieAnnularDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/pie_annular"
    })


export const useGetLineBarDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/line_bar"
    })

export const useGetWordCloudDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/wordCloud"
    })